package com.situ.cloud.user.controller;


import com.situ.cloud.common.vo.RS;
import com.situ.cloud.user.service.IMenuService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author kkkkkk
 * @since 2023-10-24
 */
@Api(description = "菜单接口")
@RestController
@RequestMapping("/menu")
public class MenuController {

    @Autowired
    private IMenuService menuService;

    @GetMapping("/list")
    public RS list() {
        return RS.ok(menuService.tree());
    }

}
